var WxParse = require('../../wxParse/wxParse.js');
var app = getApp();
Page({
  data: {
  },

  onLoad: function (options) {
    var id = options.id;
    console.log(id)
    var _this = this;
    // 产品详情
    wx.request({
      url: app.globalData.apiUrl + '/api/goods/get_info',
      data: { id: id },
      method: 'GET',
      dataType: 'json',
      success: function (res) {
        // console.log(res)
        //富文本
        WxParse.wxParse('content', 'html', res.data.content, _this, 0);
      },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  onShow: function () {
  },

})